<?
include $_SERVER['DOCUMENT_ROOT'].'/fr/include/connexion.php';

$q1 = mysql_query("SELECT * FROM produit");
while ($product = mysql_fetch_array($q1) ){
	$link = "http://www.herbesdechine.com/fr/produits/article.php?id=".$product['pro_id'];
	$node = $product['pro_nom']." ".$product['pro_nom_cn']." ";
	$node .= "<font color='#3399FF'>".$product['pro_prix']."€ / ".$product['pro_poids']."g</font>";
	$body .= "<thumb src='".$product['pro_thumb']."' url='".$link."'><![CDATA[".$node."]]></thumb>";
}

echo "<?xml version='1.0' encoding='UTF-8'?> <root><thumblist>";
echo $body;
echo "</thumblist></root>";
?>